package com.shenrongrong.model;

import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;
import java.util.Date;

public class Goods {
    private Integer goodid;
    private Integer userid;
    private String name;
    private Integer number;
    private String image;
    private Integer degree;
    private String location;
    private String classification;
    @DateTimeFormat(pattern = "YYYY-MM-DD")
    private LocalDate starttime;
    @DateTimeFormat(pattern = "YYYY-MM-DD")
    private LocalDate endtime;

    public Integer getGoodid() {
        return goodid;
    }

    public void setGoodid(Integer goodid) {
        this.goodid = goodid;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public Integer getDegree() {
        return degree;
    }

    public void setDegree(Integer degree) {
        this.degree = degree;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public String getClassification() {
        return classification;
    }

    public void setClassification(String classification) {
        this.classification = classification;
    }

    public LocalDate getStarttime() {
        return starttime;
    }

    public void setStarttime(LocalDate starttime) {
        this.starttime = starttime;
    }

    public LocalDate getEndtime() {
        return endtime;
    }

    public void setEndtime(LocalDate endtime) {
        this.endtime = endtime;
    }

    @Override
    public String toString() {
        return "goods{" +
                "goodid=" + goodid +
                ", userid=" + userid +
                ", name='" + name + '\'' +
                ", number=" + number +
                ", image='" + image + '\'' +
                ", degree=" + degree +
                ", location='" + location + '\'' +
                ", classification='" + classification + '\'' +
                ", starttime=" + starttime +
                ", endtime=" + endtime +
                '}';
    }
}
